﻿<Window x:Class="MockupDesigner.CloseWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Save changes?" Height="320" Width="300" 
        WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
    <StackPanel Margin="10,10,10,10">
        <TextBlock Text="Save changes to the following items?" />
        <ListBox Name="DocumentsLB" Height="200" IsEnabled="True" Margin="0,10,0,0">
            <ListBox.Style>
                <Style TargetType="{x:Type ListBox}">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ListBox}">
                                <Border x:Name="Bd" SnapsToDevicePixels="true" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1">
                                    <ScrollViewer Padding="{TemplateBinding Padding}" Focusable="false">
                                        <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" IsEnabled="False" IsHitTestVisible="True"/>
                                    </ScrollViewer>
                                </Border>
                                <ControlTemplate.Triggers>
                                    <Trigger Property="IsEnabled" Value="false">
                                        <Setter Property="Background" TargetName="Bd" Value="White"/>
                                        <Setter Property="ListBox.Foreground" Value="Black"/>
                                    </Trigger>
                                    <Trigger Property="IsGrouping" Value="true">
                                        <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                                    </Trigger>
                                </ControlTemplate.Triggers>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ListBox.Style>
            <ListBox.ItemContainerStyle>
                <Style TargetType="{x:Type ListBoxItem}">
                    <Setter Property="Content" Value="{Binding DocumentName}"/>
                    <Setter Property="Margin" Value="5,0,0,0"/>
                </Style>
            </ListBox.ItemContainerStyle>
        </ListBox>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,10,0,0" >
            <Button Content="Yes" IsDefault="True"  Width="60" Margin="0,0,5,0" Click="Yes_Click" />
            <Button Content="No"  Width="60" Margin="0,0,5,0" Click="No_Click"/>
            <Button Content="Cancel" IsCancel="True" Width="60" Click="Cancel_Click" />
        </StackPanel>
    </StackPanel>
    <!-- Save changes to the following items?-->
</Window>
